﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MatchList.aspx.cs" Inherits="SoccerEvaluator.WebSite.MatchList" %>

<asp:Content runat="server" ContentPlaceHolderID="PageHeader">
    <link href="css/MatchList.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <h2>
        <%=_groupName %>
    </h2>
    <link href="css/MatchList.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="MatchMenu">
        <a href="GroupList.aspx">Inicio                        
        </a>
        <a href="MatchSummary.aspx"><%=Resources.Resource.Summary %> </a>
    </div>

    <div style="padding: 5px">



        <asp:GridView ID="lstTemplates" runat="server" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" Width="100%" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
            <Columns>                
                <asp:TemplateField HeaderText="Logo" SortExpression="Logo">
                    <ItemTemplate>
                        <img src="/Images/<%#DataBinder.Eval(Container.DataItem,"Logo") %>" class="logo" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Match.aspx?ID={0}" DataTextField="Name" DataTextFormatString="{0}" />
                <asp:BoundField DataField="ExactScore" HeaderText="ExactScore" SortExpression="ExactScore" />
                <asp:BoundField DataField="CatchScore" HeaderText="CatchScore" SortExpression="CatchScore" />
                <asp:BoundField DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate" />
                <asp:BoundField DataField="EndDate" HeaderText="EndDate" SortExpression="EndDate" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#333333" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#487575" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#275353" />
        </asp:GridView>

        <asp:ObjectDataSource ID="ObjectDataSource1"
            runat="server" SelectMethod="ListGroups" TypeName="SoccerEvaluator.WebSite.App_Code.SoccerEvaluatorDataSource" OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:QueryStringParameter Name="groupId" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>

    </div>
</asp:Content>
